﻿using System.Collections.Generic;

namespace TyMES.Communication.Request
{
    public class Producepara
    {
        public class Produce006Request
        {
            public string serviceId ="Product006_ProductParameters";
            public string factoryCode = "TH13";
            public List<DataElement> data { get; set; }
        }

        public class DataElement
        {
            public string lineCode { get; set; }
            public string machineCode { get; set; }
            public string materialCode { get; set; }
            public string materialName { get; set; }
            public string materialVersion { get; set; }
            public string snNumber { get; set; }
            public string paramName { get; set; }
            public string paramCode { get; set; }
            public string paramAddress { get; set; }
            public string realValue { get; set; }
            public double paramRange1 { get; set; }
            public double paramRange2 { get; set; }
            public string paramTime { get; set; }
            public string acquisitCode { get; set; }
            public string stationCode { get; set; }
            public string resultFlag { get; set; }
            public string resourceType { get; set; }
            public string resourceValue { get; set; }
            public List<DataListElement> dataList { get; set; }
        }

        public class DataListElement
        {
            public string paramName { get; set; }
            public string paramCode { get; set; }
            public string standardValue { get; set; }
            public string realValue { get; set; }
            public double paramRange1 { get; set; }
            public double paramRange2 { get; set; }
            public long paramTime { get; set; }
            public int checkResult { get; set; }
        }

        public class DataPacket
        {
            public string SN { get; set; }
            public string StationCode { get; set; }
            public string DataName { get; set; }
            public string Result { get; set; }
            public string Data { get; set; }
            public string CreateTime { get; set; }
            public string SqlTime { get; set; }
            public bool SqlFlag { get; set; }
        }
    }

}
